import 'package:fish_redux/fish_redux.dart';

import 'action.dart';
import 'state.dart';

Reducer<CompanyState> buildReducer() {
  return asReducer(
    <Object, Reducer<CompanyState>>{
      CompanyAction.action: _onAction,
      CompanyAction.refreshUI:_refreshUI,
    },
  );
}

CompanyState _onAction(CompanyState state, Action action) {
  final CompanyState newState = state.clone();
  return newState;
}

CompanyState _refreshUI(CompanyState state, Action action) {
  final CompanyState newState = state.clone();
  return newState;
}
